
import React from "react";
import Grandson from "../Grandson";

class Myref extends React.Component{
    sonfunction = ()=>{
        console.log('我是子组件的方法')
    }
    render(){
        return (
            <>
            <div>我是ref组件---(我是子组件)</div>
            <Grandson></Grandson>
            </>
        )
    }
}

export default Myref